package com.yxj01;

import java.util.HashMap;
import java.util.Map;

public class MapDemo02 {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<String,String>();
        map.put("猪八戒","孙悟空");
        map.put("西施","安琪拉");
        map.put("鲁班","芈月");
        System.out.println(map.remove("鲁班"));
        System.out.println(map.remove("应用"));
//        map.clear();
        System.out.println(map.containsKey("西施1"));
        System.out.println(map.containsValue("安琪拉"));
        System.out.println(map.isEmpty());
        System.out.println(map.size());
        System.out.println(map);
    }
}
